<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>编辑权限</title>

</head>
<body>
<div class="easyui-panel" style="padding:5px;height: 300px;">
    <ul id="charEmp" class="easyui-tree" checkbox="true">
        <li>
            <span>用户授权</span>
            <ul>
                <c:forEach items="${depList}" var="d">
                    <li>
                        <span id="${d.depid}">${d.depName}</span>
                        <ul>
                            <c:forEach items="${empList}" var="e">
                                <c:set var="falg" value="true" />
                                <c:if test="${e.depId==d.depid}">
                                    <c:forEach items="${charactersEmpList}" var="c">
                                        <c:if test="${c.empId==e.empId}">
                                            <li data-options="checked:true" id="${e.empId}">
                                                <span >${e.empName}</span>
                                                <c:set var="falg" value="false" />
                                            </li>
                                        </c:if>
                                    </c:forEach>
                                    <c:if test="${falg}">
                                        <li data-options="checked:false" id="${e.empId}">
                                            <span>${e.empName}</span>
                                        </li>
                                    </c:if>
                                </c:if>
                            </c:forEach>
                        </ul>
                    </li>
                </c:forEach>

            </ul>
        </li>
    </ul>
</div>
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'"
   onclick="addCharEmp(${characterId});">保存</a>
</body>
</html>